package com.firebird.fekpslan.mvp.model

import com.firebird.app.fekpsl.http.RetrofitHelper
import com.firebird.app.fekpsl.mvp.home.HomeContract
import com.firebird.app.fekpsl.bean.Banner
import com.firebird.app.fekpsl.bean.HttpResult
import com.firebird.app.fekpsl.bean.WallResponseBody
import io.reactivex.Observable

/**
 * Created by firebird on 2018/4/21.
 */
class HomeModel : CommonModel(), HomeContract.Model {

    override fun requestBanner(): Observable<HttpResult<List<Banner>>> {
        return RetrofitHelper.service.getBanners()
    }

    override fun requestWallList(pageNo: Int,userUuid:String): Observable<HttpResult<WallResponseBody>> {
        return RetrofitHelper.wallService.getWallList(pageNo,userUuid)
    }

}